<?php
declare (strict_types = 1);

namespace app\wechat\controller;

use app\BaseController;
use app\wechat\service\LiveService;

class Live extends BaseController
{
    /**
     * 微信小程序直播间同步
     *
     * @Author tanruizheng
     * @DateTime 2021-08-24
     * @return void
     */
    public function sysMiniLive(){
        try {
            $LiveService = new LiveService('wx294975311d4ef718');
            $roomRes = $LiveService->sysMiniLive();
            return json($roomRes);
        } catch (\Exception $e) {
            return json(self::createFail($e->getMessage()));
        }
    }
}
